﻿<%@ Page Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true"
    CodeBehind="role-list.aspx.cs" Inherits="SmartSpace.WebApp._console.core.role_list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
    <ul>
        <li><a href="theme-list.aspx">主题列表 </a></li>
        <li><a href="module-list.aspx">模块列表 </a></li>
        <li><a href="application-list.aspx">应用程序列表 </a></li>
        <li><a href="org-list.aspx">组织机构列表 </a></li>
        <li><a href="role-list.aspx">角色列表 </a></li>
        <li><a href="user-list.aspx">用户列表 </a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    角色列表
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkAdd" runat="server" NavigateUrl="~/_console/core/role-add.aspx">添加角色</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">

    <div style="position: absolute; left: 0px; top: 0px; right: 60%; bottom: 0px;">
        <asp:Repeater ID="_ctlGridRole" runat="server">
            <HeaderTemplate>
                <table width="100%" border="1">
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Caption
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <span id="_ctlLabel" runat="server" visible='<%# IsSelected(Eval("Id")) %>'>已选择</span>
                        <a id="_ctlLink" href='<%# Eval("Id","?id={0}") %>' runat="server" visible='<%# !IsSelected(Eval("Id")) %>'>
                            选择</a>
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>

    <div style="position: absolute; top: 0px; right: 0px; bottom: 0px; width: 60%;">
        <iframe id="_ctlSubViewFrame" name="_ctlSubViewFrame" width="100%" height="100%" frameborder="0" runat="server"></iframe>
    </div>

</asp:Content>
